#pragma once
#include<iostream>
#include<stdlib.h>
#include<assert.h>


using std::cout;
using std::endl;

typedef int DataDype;

 namespace zgw
{
	class Stack {
	public:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   		void Push(int x);
		void Print();
		void Pop();
		DataDype  Top();
		bool Empty();
		~Stack();
	private:
		int* _a;
		int _top;
		int _capacity;
		int _size;
	};
}